package com.burgeon.backend.mappers;


import com.burgeon.backend.entity.AccessToken;
import com.burgeon.backend.entity.JsapiTicket;
import com.burgeon.backend.entity.Wechat;

public interface WechatMapper {

    Integer addWechat(Wechat wechat);

    Integer updataWechat(Wechat wechat);

    Wechat getWechatByAccount(String account);

    Wechat getWechat(String token);

    //****************************************

    AccessToken getAccessToken(String token);

    Integer addAccessToken(AccessToken accessToken);

    Integer upDataAccessToken(AccessToken accessToken);

    //***************************************************

    JsapiTicket getJsapiTicket(String token);

    Integer addJsapiTicket(JsapiTicket jsapiTicket);

    Integer upDataJsapiTicket(JsapiTicket jsapiTicket);

    String findAppId(String token);
}
